package com.souche.employment.es.domain;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldIndex;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

/**
 * PersonSearchDO created at 2017/9/15 下午8:48
 * Ray [email:rayinhangzhou@126.com]
 * Revision History
 * Date            Programmer                   Notes
 * ----------------------------------------------------------
 **/

@Data
@Document(indexName = "employment", type = "person", shards = 1, replicas = 0, refreshInterval = "-1")
public class PersonSearchDO implements Serializable {
    @Id
    private String id;

    private String key;
    @Field(index = FieldIndex.not_analyzed, type = FieldType.String)
    private String name;
    @Field(index = FieldIndex.not_analyzed, type = FieldType.String)
    private String phone;
    @Field(index = FieldIndex.not_analyzed, type = FieldType.String)
    private String jobId;
    @Field(index = FieldIndex.no, type = FieldType.String)
    private String jobName;
    @Field(index = FieldIndex.not_analyzed, type = FieldType.String)
    private String dep1;
    @Field(index = FieldIndex.not_analyzed, type = FieldType.String)
    private String dep2;
    @Field(index = FieldIndex.no, type = FieldType.String)
    private String tip;
    @Field(index = FieldIndex.not_analyzed, type = FieldType.String)
    private String inviteStatus;
    @Field(index = FieldIndex.not_analyzed, type = FieldType.String)
    private String interviewStatus;
    private Long dateEntry;
    private Long dateCreate;

}
